import React from 'react';
import { history } from 'umi';

const User = (props: any) => {
  // console.log(props);

  const goHome = () => {
    history.push('/');
  };

  return (
    <div>
      User组件二
      <button onClick={goHome}>点击回到首页</button>
    </div>
  );
};

export default User;
